package com.atguigu.self.gulimall.product;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * 配置mybatis-plus数据访问步骤
 * 1、common模块中添加  mysql-connector-java 和 mybatis-plus-boot-starter依赖
 * 2、在本模块中在application.yml中配置 spring数据源
 * 3、在本模块中在application.yml中配置 mybatis-plus 配置文件加载信息和实体类表主键自增；
 * 4、测试查询数据
 */

/**
 * @MapperScan mybatis-plus DAO层扫描
 */
@EnableFeignClients("com.atguigu.self.gulimall.product.feign")
@EnableDiscoveryClient
@MapperScan("com.atguigu.self.gulimall.product.dao")
@SpringBootApplication
public class GulimallProductApplication {

    public static void main(String[] args) {
        SpringApplication.run(GulimallProductApplication.class, args);
    }

}
